/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package org.gad.ui;

import org.gad.model.CompositeStep;

/**
 *
 * @author Tomek
 */
public class RepeatStepWidget extends CompositeStepWidget
{
    
    public RepeatStepWidget( BoxScene scene, CompositeStep modelStep )
    {
        super(scene, modelStep);
        
        _clientArea.addChild(new DropAreaWidget(scene, true,
                (CompositeStep) _modelStep, 0));
    }
    
    @Override
    public void addInnerStep(StepWidgetBase step)
    {
        step._parent = this;
        _clientArea.addChild( step );
        
        
    }

    @Override
    public void removeInnerStep(StepWidgetBase step)
    {
        ((CompositeStep) _modelStep).RemoveStep(step._modelStep);
    }
}
